﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="FoxyGridView" Namespace="Foxy.WebControls" TagPrefix="FGV" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Prueba de GridView</title>

    <script src="scripts/prototype.js" type="text/javascript"></script>
    <script src="scripts/scriptaculous.js?load=builder,effects" type="text/javascript"></script>
    <script src="scripts/modalbox/modalbox.js" type="text/javascript"></script>
    <link href="scripts/modalbox/modalbox.css" rel="stylesheet" type="text/css" />
</head>
<body>
<center>
    <form id="form1" runat="server">
        <button type="button" onclick="Modalbox.show('FrameModalBox.html', {width: 460, title: 'Sending status'}); return false;"> 
            Send link
        </button>
        <div>
            <FGV:GridView ID="FGView" runat="server" CellPadding="4" GridLines="None"
                ForeColor="#333333" DataKeyNames="ID" AutoGenerateColumns="False" 
                EnableAutoPostbackCheckBox ="true" OnRowDoubleClick="FGView_RowDoubleClick"
                oncheckboxchecked="FGView_OnCheckedChanged" onrowcommand="FGView_RowCommand"
                OnRowEditing="FGView_RowEditing" onrowupdating="FGView_RowUpdating"
                OnRowCancelingEdit="FGView_RowCancelingEdit" CheckBoxHeader=""
                CheckBoxDataField="Active" CheckBoxColumnIndex="1" GenerateCheckBoxColumn="true"
                RowRollOverColor="Transparent" RowRollOverText="Transparent" >
                <FooterStyle CssClass="footerStyle" />
                <RowStyle CssClass="rowStyle" />
                <SelectedRowStyle CssClass="selectedRowStyle" />
                <PagerStyle CssClass="footerStyle" />
                <HeaderStyle CssClass="headerStyle" />
                <AlternatingRowStyle CssClass="alternatingRowStyle" />
                <Columns>
                    <asp:BoundField DataField="ID" ReadOnly="true" HeaderText="ID" />
                    <asp:TemplateField HeaderText="First Name">
                        <ItemTemplate>
                            <asp:Label ID="lblFirstName" runat="server" Text='<%# Eval("FirstName") %>'></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtFirstName" runat="server" Text='<%# Bind("FirstName") %>' ></asp:TextBox>
                        </EditItemTemplate>
                    </asp:TemplateField>
                    <asp:CommandField ButtonType="Image" EditImageUrl="~/images/edit.gif" 
                        UpdateImageUrl="~/images/save.png" CancelImageUrl="~/images/cancel.png" ShowEditButton="True" />
                </Columns>
                <EmptyDataTemplate>
                    No existen datos
                </EmptyDataTemplate>
            </FGV:GridView>
        </div>
    </form>
</center>
</body>
</html>
